function h = plot(record,varargin)
if nargin == 1
    varargin = {'linewidth',2};
end
h = plot(record.time,record.mean,varargin{:});
set(gca,'FontSize',18);
xlabel('time (s)');

if isempty(record.VariableUnit)
    ylabel(sprintf('%s',record.VariableName));
else
    ylabel(sprintf('%s (%s)',record.VariableName,record.VariableUnit));
end
end
